package com.mask.demo.controller;

import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * ClassName AnnoTest
 * Create by hx
 * Date 2021/9/15 11:24 下午
 */

public class AnnoTest {
    @Autowired
    UserControllerAnno userController;
    @Test
    public void test(){
        ClassPathXmlApplicationContext app =
                new ClassPathXmlApplicationContext("applicationContext.xml");
        UserControllerAnno userControllerAnno = (UserControllerAnno) app.getBean("userController");
        userControllerAnno.hello();
    }
}
